
//跨域代理前缀
// const API_PROXY_PREFIX='/api'
// const BASE_URL = process.env.NODE_ENV === 'production' ? process.env.VUE_APP_BASE_API : API_PROXY_PREFIX

const BASE_URL = process.env.VUE_APP_BASE_API
const AUTH_PORT = 9600
const GATE_WAY_PORT = 8080
const SYSTEM_PORT = 9100
const FORM_PROT = 9601
const GEN_PORT = 9202


module.exports = {
  LOGIN: `${BASE_URL}:${AUTH_PORT}/auth/code/login`,
  GETINFO: `${BASE_URL}:${SYSTEM_PORT}/system/user/getInfo`,
  GET_ROUTERS: `${BASE_URL}:${SYSTEM_PORT}/system/menu/getRouters`,
  MENU_List: `${BASE_URL}:${SYSTEM_PORT}/system/menu/list`,
  FORM_LIST: `${BASE_URL}:${FORM_PROT}/form/list`,
  ADD_FORM: `${BASE_URL}:${FORM_PROT}/form`,
  FORM: `${BASE_URL}:${FORM_PROT}/form`,
  DELETE: `${BASE_URL}:${FORM_PROT}/form/delete`,
  LOGIN_OUT: `${BASE_URL}:${AUTH_PORT}/auth/logout`,
  GEN_LIST: `${BASE_URL}:${GEN_PORT}/code/gen/list`,
  DB_LIST: `${BASE_URL}:${GEN_PORT}/code/gen/db/list`,
  GET_GEN_TABLE: `${BASE_URL}:${GEN_PORT}/code/gen`,
  IMPORT_TABLE: `${BASE_URL}:${GEN_PORT}/code/gen/importTable`,
  UPDATE_GEN_TABLE: `${BASE_URL}:${GEN_PORT}/code/gen/edit`,
  PREVIEW_TABLE: `${BASE_URL}:${GEN_PORT}/code/gen/preview`,
  DEL_TABLE: `${BASE_URL}:${GEN_PORT}/code/gen/delete`,
  GEN_CODE: `${BASE_URL}:${GEN_PORT}/code/gen/genCode`,
  GEN_SYNCHDB: `${BASE_URL}:${GEN_PORT}/code/gen/synchDb`,
}

